package ch5;

import java.util.Scanner;

public class MustThan6 {
	// 彻底淘汰do while
	public static void main(String[] args) {
		// 输入一个大于等于6的偶数
		Scanner in = new Scanner(System.in);
		int num = 0;
		while (true) {
			num = in.nextInt();
			if (num >= 6 && num % 2 == 0)
				break;
		}
		// do {
		// System.out.print("请输入一个正整数：");
		// num = in.nextInt();
		// } while (num < 6 || num % 2 != 0);
		System.out.println("您输入的" + num + "满足要求");
	}

}
